import React from "react";

export interface RouteType {
  name?: string;
  path: string;
  hidden?: boolean;
  redirect?: string;
  component: string | React.FC;
  alwaysShow?: boolean;
  affix?: boolean;
  meta?: {
    title: string;
    icon?: string;
    noCache?: boolean;
    link?: string | null;
    affix?: boolean;
  };
  children?: RouteType[];
}

export interface SiderbarRoute {
  name: React.ReactNode;
  key: React.Key;
  path: string;
  icon?: string;
  title: React.ReactNode;
  children?: SiderbarRoutesType;
}

export type RoutesType = RouteType[];

export type SiderbarRoutesType = SiderbarRoute[];
